ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi Namespace / Region Class / CreatePolygonRegion Method / CreatePolygonRegion(Point[],PolyFillMode) Method
A System.Drawing.Point array that defines the vertices of the polygon.
C1.Framework.Drawing.Gdi.DeviceContexts.PolyFillMode Indicates the poly fill mode is "alternate" or "winding"

In This Topic
    CreatePolygonRegion(Point[],PolyFillMode) Method
    In This Topic
    Create a polygons region from the point array which defines the vertices of the polygon.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreatePolygonRegion( _
       ByVal polygonPoints() As Point, _
       ByVal polyFillMode As PolyFillMode _
    ) As Region
    public static Region CreatePolygonRegion( 
       Point[] polygonPoints,
       PolyFillMode polyFillMode
    )

    Parameters

    polygonPoints
    A System.Drawing.Point array that defines the vertices of the polygon.
    polyFillMode
    C1.Framework.Drawing.Gdi.DeviceContexts.PolyFillMode Indicates the poly fill mode is "alternate" or "winding"
    Remarks
    This method creates a new Region object with a polygon interior interior. The interior is defined by the polygonPoints parameter.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also